original_string: public function get($product_class_field_id)
      {
          $result = null;
          $this->hook->attach('product.class.field.get.before', $product_class_field_id, $result, $this);
  
          if (isset($result)) {
              return $result;
          }
  
          $sql = 'SELECT * FROM product_class_field WHERE product_class_field_id=?';
          $result = $this->db->fetch($sql, array($product_class_field_id));
  
          $this->hook->attach('product.class.field.get.after', $result, $this);
          return $result;
      }
code: public function get($product_class_field_id)
      {
          $result = null;
          $this->hook->attach('product.class.field.get.before', $product_class_field_id, $result, $this);
  
          if (isset($result)) {
              return $result;
          }
  
          $sql = 'SELECT * FROM product_class_field WHERE product_class_field_id=?';
          $result = $this->db->fetch($sql, array($product_class_field_id));
  
          $this->hook->attach('product.class.field.get.after', $result, $this);
          return $result;
      }
code_tokens: public function get ( $ product_class_field_id ) { $ result = null ; $ this -> hook -> attach ( 'product.class.field.get.before' , $ product_class_field_id , $ result , $ this ) ; if ( isset ( $ result ) ) { return $ result ; } $ sql = 'SELECT * FROM product_class_field WHERE product_class_field_id=?' ; $ result = $ this -> db -> fetch ( $ sql , array ( $ product_class_field_id ) ) ; $ this -> hook -> attach ( 'product.class.field.get.after' , $ result , $ this ) ; return $ result ; }
docstring: Loads a product class field from the database
  @param integer $product_class_field_id
  @return array
docstring_tokens: Loads a product class field from the database