• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP sfPropelBehavior类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中sfPropelBehavior的典型用法代码示例。如果您正苦于以下问题:PHP sfPropelBehavior类的具体用法?PHP sfPropelBehavior怎么用?PHP sfPropelBehavior使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了sfPropelBehavior类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: initialize

 public function initialize()
 {
     parent::initialize();
     // Register behavior's hooks
     sfPropelBehavior::registerHooks('studentCareerSchoolYear', array(':save:pre' => array('StudentCareerSchoolYearBehavior', 'createStudentCareerSchoolYear')));
     //sfPropelBehavior::registerHooks('examination', array(
     //  ':save:pre' => array('ExaminationBehavior', 'createExaminationSubjects'),
     //));
     sfPropelBehavior::registerHooks('examination_subject', array(':save:pre' => array('ExaminationSubjectBehavior', 'updateCourseSubjectStudentExaminations')));
     sfPropelBehavior::registerHooks('examination_repproved_subject', array(':save:pre' => array('ExaminationRepprovedSubjectBehavior', 'updateStudentExaminationRepprovedSubjects')));
     sfPropelBehavior::registerHooks('student_approved_career_subject', array(':save:post' => array('StudentApprovedCareerSubjectBehavior', 'graduateStudent')));
     sfPropelBehavior::registerHooks('student_approved_course_subject', array(':save:post' => array('StudentRepprovedCourseSubjectBehavior', 'checkRepeatition')));
     sfPropelBehavior::registerHooks('student_reincorporation_save', array(':save:post' => array('StudentReincorporationBehavior', 'updateReincorporation')));
     sfPropelBehavior::registerHooks('student_reincorporation_delete', array(':delete:pre' => array('StudentReincorporationBehavior', 'deleteReincorporation')));
     sfPropelBehavior::registerHooks('career_subject_school_year_update', array(':save:post' => array('CareerSubjectSchoolYearBehavior', 'updateCareerSubjectSchoolYear')));
     sfPropelBehavior::registerHooks('person_delete', array(':delete:pre' => array('PersonBehavior', 'deletePerson')));
     spl_autoload_register(array('ncFlavorAutoload', 'initialize'));
 }
开发者ID:nvidela,项目名称:kimkelen,代码行数:18,代码来源:backendConfiguration.class.php


示例2: getThumbnail

    }
    public function getThumbnail($size = "small")
    {
        if ($this->isFilled()) {
            return $this->getUser()->getProfile()->getThumbnail($size);
        }
        $photo = "noprofile.png";
        if ($size == "tiny") {
            return '/' . sfConfig::get('sf_upload_dir_name') . '/thumbnails/tiny/' . $photo;
        }
        if ($size == "small") {
            return '/' . sfConfig::get('sf_upload_dir_name') . '/thumbnails/small/' . $photo;
        }
        if ($size == "medium") {
            return '/' . sfConfig::get('sf_upload_dir_name') . '/thumbnails/medium/' . $photo;
        }
        if ($size == "large") {
            return '/' . sfConfig::get('sf_upload_dir_name') . '/thumbnails/large/' . $photo;
        }
    }
    public function getMilestones($sort_by = "deadline", $direction = "asc")
    {
        return PositionMilestonePeer::retrieveSortedByPositionId($this->getId(), $sort_by, $direction);
    }
}
//sfPropelBehavior::add('ProjectPosition', array('versionable'));
sfPropelBehavior::add('ProjectPosition', array('sfPropelUuidBehavior'));
//sfPropelBehavior::add('ProjectPosition', array('paranoid' => array('column' => 'deleted_at')));
sfPropelBehavior::add('ProjectPosition', array('sfPropelActAsCountableBehavior'));
sfPropelBehavior::add('ProjectPosition', array('sfPropelActAsTaggableBehavior'));
开发者ID:sgrove,项目名称:cothinker,代码行数:30,代码来源:ProjectPosition.php


示例3: intoSolrDocument

            $this->skip_news_generation = false;
        }
        return parent::save();
    }
    /**
     * torna l'oggetto Apache_Solr_Document da indicizzare
     *
     * @return Apache_Solr_Document
     * @author Guglielmo Celata
     */
    public function intoSolrDocument()
    {
        $document = new Apache_Solr_Document();
        $id = $this->getId();
        $document->id = md5('OppDocumento' . $id);
        $document->sfl_model = 'OppDocumento';
        $document->sfl_type = 'model';
        $document->tipo_atto_s = strtolower($this->getOppAtto()->getTipoAtto());
        $document->propel_id = $id;
        $document->titolo = strip_tags(str_replace("'", "\\'", $this->getTitoloCompleto()));
        $document->testo = strip_tags(str_replace("'", "\\'", $this->getTesto()));
        if ($this->getData()) {
            $document->data_pres_dt = $this->getData('%Y-%m-%dT%H:%M:%SZ');
        }
        $document->created_at_dt = $this->getCreatedAt('%Y-%m-%dT%H:%M:%SZ');
        // ritorna il documento da aggiungere
        return $document;
    }
}
sfPropelBehavior::add('OppDocumento', array('deppPropelActAsNewsGeneratorBehavior' => array('monitorable_models' => array('OppAtto' => 'getOppAtto'), 'date_method' => 'Data', 'priority' => '2')));
sfSolrPropelBehavior::getInitializer()->setupModel('OppDocumento');
开发者ID:valerio-bozzolan,项目名称:openparlamento,代码行数:31,代码来源:OppDocumento.php


示例4: array

<?php

/**
 * Subclass for representing a row from the 'sf_test_object' table.
 *
 * 
 *
 * @package lib.model
 */
class sfTestObject extends BasesfTestObject
{
}
/*
sfPropelBehavior::add(
  'sfTestObject', 
  array('deppPropelActAsCommentableBehavior' =>
        array('count_cache_enabled'   => true,
              'count_cache_method'    => 'setSfCommentCount')));
*/
sfPropelBehavior::add('sfTestObject', array('deppPropelActAsEmendableBehavior' => array('count_cache_enabled' => true, 'count_cache_method' => 'setSfCommentCount')));
开发者ID:valerio-bozzolan,项目名称:openparlamento,代码行数:20,代码来源:sfTestObject.php


示例5: getStringMark

        return SchoolBehaviourFactory::getInstance()->getShortFreeLabel($this);
    }
    public function getStringMark()
    {
        return $this->__toString();
    }
    public function getColor()
    {
        return SchoolBehaviourFactory::getEvaluatorInstance()->getColorForCourseSubjectStudentMark($this);
    }
    public function getMarkByConfig($config = null)
    {
        if (is_null($config)) {
            $config = $this->getCourseSubjectStudent()->getCourseSubject()->getCareerSubjectSchoolYear()->getConfiguration();
        }
        if ($this->getMark() != 0) {
            if (!is_null($config) && !$config->isNumericalMark()) {
                $letter_mark = LetterMarkPeer::getLetterMarkByValue((int) $this->getMark());
                return $letter_mark->getLetter();
            } else {
                return $this->getMark();
            }
        } elseif ($this->getIsFree()) {
            return "Libre";
        } else {
            return $this->getMark();
        }
    }
}
sfPropelBehavior::add('CourseSubjectStudentMark', array('changelog'));
开发者ID:nvidela,项目名称:kimkelen,代码行数:30,代码来源:CourseSubjectStudentMark.php


示例6: array

<?php

/**
 * Subclass for representing a row from the 'ct_position_application' table.
 *
 * 
 *
 * @package lib.model
 */
class PositionApplication extends BasePositionApplication
{
}
sfPropelBehavior::add('PositionApplication', array('sfPropelActAsCommentableBehavior'));
sfPropelBehavior::add('PositionApplication', array('sfPropelUuidBehavior'));
sfPropelBehavior::add('PositionApplication', array('sfPropelActAsStarredBehavior'));
开发者ID:sgrove,项目名称:cothinker,代码行数:15,代码来源:PositionApplication.php


示例7: setupModel

 /**
  * Sets up the provided model by adding propel behaviors.  It pulls the data to use for this
  * in the search.yml file.
  * @param string $model The model name to setup.
  */
 public function setupModel($model)
 {
     $this->setupModelOneTime();
     sfPropelBehavior::add($model, array('search' => array()));
     return $this;
 }
开发者ID:valerio-bozzolan,项目名称:openparlamento,代码行数:11,代码来源:sfSolrPropelInitializer.class.php


示例8: needsCommit

<?php

/**
 * Subclass for representing a row from the 'records' table.
 *
 * 
 *
 * @package lib.model
 */
class Record extends BaseRecord
{
    public function needsCommit()
    {
        $connection = Propel::getConnection();
        $sql = sprintf("SELECT COUNT(%s) AS count FROM %s \n      WHERE %s = 'Record' \n      AND %s = %d \n      AND %s = %d \n      AND %s > '%s'", AuditPeer::ID, AuditPeer::TABLE_NAME, AuditPeer::OBJECT, AuditPeer::OBJECT_KEY, $this->getId(), AuditPeer::DOMAIN_ID, $this->getDomainId(), AuditPeer::CREATED_AT, date("Y-m-d H:i:s", MyTools::getLastCommit()));
        $statement = $connection->prepareStatement($sql);
        $resultset = $statement->executeQuery();
        $resultset->next();
        return $resultset->getInt('count');
    }
}
sfPropelBehavior::add('Record', array('audit'));
开发者ID:royalterra,项目名称:pdns-gui,代码行数:22,代码来源:Record.php


示例9: deletePhysicalDocument

    public function deletePhysicalDocument($document_path)
    {
        if (file_exists($document_path)) {
            unlink($document_path);
        }
    }
    public function deleteDocument()
    {
        $this->deletePhysicalDocument($this->getDocumentFullPath());
        $this->setDocument('');
        $this->save();
    }
    public function getValueString()
    {
        return $this->getValue() . ' amonestaciones';
    }
    public function getFormattedRequestDate()
    {
        return date('d-m-Y', strtotime($this->getRequestDate()));
    }
    public function getFormattedResolutionDate()
    {
        return date('d-m-Y', strtotime($this->getResolutionDate()));
    }
    public function renderChangeLog()
    {
        return ncChangelogRenderer::render($this, 'tooltip', array('credentials' => 'view_changelog'));
    }
}
sfPropelBehavior::add('StudentDisciplinarySanction', array('changelog'));
开发者ID:nvidela,项目名称:kimkelen,代码行数:30,代码来源:StudentDisciplinarySanction.php


示例10: array

<?php

/*
 * This file is part of the sfPropelActAsCountableBehavior package.
 * 
 * (c) 2008 Xavier Lacot <[email protected]>
 * 
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
if (in_array('sfCounter', sfConfig::get('sf_enabled_modules', array()))) {
    $r = sfRouting::getInstance();
    $r->prependRoute('sf_counter', '/sfCounter/increment/*', array('module' => 'sfCounter', 'action' => 'incrementCounter'));
}
sfPropelBehavior::registerHooks('sfPropelActAsCountableBehavior', array(':delete:post' => array('sfPropelActAsCountableBehavior', 'postDelete')));
sfPropelBehavior::registerMethods('sfPropelActAsCountableBehavior', array(array('sfPropelActAsCountableBehavior', 'decrementCounter'), array('sfPropelActAsCountableBehavior', 'forceCounter'), array('sfPropelActAsCountableBehavior', 'getCounter'), array('sfPropelActAsCountableBehavior', 'incrementCounter'), array('sfPropelActAsCountableBehavior', 'resetCounter'), array('sfPropelActAsCountableBehavior', 'saveCounter')));
开发者ID:sgrove,项目名称:cothinker,代码行数:16,代码来源:config.php


示例11: getCreatedAt

 * 
 *
 * @package lib.model
 */
class Domain extends BaseDomain
{
    /**
     * Gets timestamp when domain was created
     */
    public function getCreatedAt()
    {
        $c = new Criteria();
        $c->add(AuditPeer::OBJECT, 'Domain');
        $c->add(AuditPeer::TYPE, 'ADD');
        $c->add(AuditPeer::OBJECT_KEY, $this->getId());
        $c->addAscendingOrderByColumn(AuditPeer::ID);
        $audit = AuditPeer::doSelectOne($c);
        return $audit->getCreatedAt();
    }
    public function needsComit()
    {
        $connection = Propel::getConnection();
        $sql = sprintf("SELECT COUNT(%s) AS count FROM %s WHERE %s = 'Record' AND %s = %d AND %s > '%s'", AuditPeer::ID, AuditPeer::TABLE_NAME, AuditPeer::OBJECT, AuditPeer::DOMAIN_ID, $this->getId(), AuditPeer::CREATED_AT, date("Y-m-d H:i:s", MyTools::getLastCommit()));
        $statement = $connection->prepareStatement($sql);
        $resultset = $statement->executeQuery();
        $resultset->next();
        return $resultset->getInt('count');
    }
}
sfPropelBehavior::add('Domain', array('audit'));
开发者ID:royalterra,项目名称:pdns-gui,代码行数:30,代码来源:Domain.php


示例12: __toString

    public function __toString()
    {
        return $this->getProject() . ' : ' . $this->getTitle();
    }
    public function getUser()
    {
        return $this->getSfGuardUser();
    }
    public function getPositionTitle()
    {
        $position = $this->getProjectPosition();
        if ($position == null) {
            return "Dead Project";
        }
        return $position->getTitle();
    }
    public function getProjectTitle()
    {
        $position = $this->getProjectPosition();
        if ($position == null) {
            return "Dead Project";
        }
        $project = $position->getProject();
        if ($project == null) {
            return "Dead Project";
        }
        return $project->getTitle();
    }
}
sfPropelBehavior::add('ProjectUser', array('sfPropelUuidBehavior'));
开发者ID:sgrove,项目名称:cothinker,代码行数:30,代码来源:ProjectUser.php


示例13: array

<?php

/*
 * This file is part of the deppPropelActAsCommentableBehavior package.
 * 
 * (c) 2008 Guglielmo Celata <[email protected]>
 * based on sfPropelActAsCommentable, by Xavier Lacot <[email protected]>
 * 
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
sfPropelBehavior::registerHooks('deppPropelActAsCommentableBehavior', array(':delete:pre' => array('deppPropelActAsCommentableBehavior', 'preDelete')));
sfPropelBehavior::registerMethods('deppPropelActAsCommentableBehavior', array(array('deppPropelActAsCommentableBehavior', 'addComment'), array('deppPropelActAsCommentableBehavior', 'clearComments'), array('deppPropelActAsCommentableBehavior', 'getComments'), array('deppPropelActAsCommentableBehavior', 'getPublicComments'), array('deppPropelActAsCommentableBehavior', 'getNbComments'), array('deppPropelActAsCommentableBehavior', 'getNbPublicComments'), array('deppPropelActAsCommentableBehavior', 'removeComment'), array('deppPropelActAsCommentableBehavior', 'publishComment'), array('deppPropelActAsCommentableBehavior', 'unpublishComment')));
开发者ID:valerio-bozzolan,项目名称:openparlamento,代码行数:13,代码来源:config.php


示例14: array

<?php

/*
 * This file is part of the sfPropelActAsNestedSetBehavior package.
 * 
 * (c) 2007 Tristan Rivoallan <[email protected]>
 * 
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
sfPropelBehavior::registerHooks('actasnestedset', array(':save:pre' => array('sfPropelActAsNestedSetBehavior', 'preSave'), ':delete:pre' => array('sfPropelActAsNestedSetBehavior', 'preDelete')));
sfPropelBehavior::registerMethods('actasnestedset', array(array('sfPropelActAsNestedSetBehavior', 'getLeftValue'), array('sfPropelActAsNestedSetBehavior', 'getRightValue'), array('sfPropelActAsNestedSetBehavior', 'getParentIdValue'), array('sfPropelActAsNestedSetBehavior', 'getScopeIdValue'), array('sfPropelActAsNestedSetBehavior', 'setLeftValue'), array('sfPropelActAsNestedSetBehavior', 'setRightValue'), array('sfPropelActAsNestedSetBehavior', 'setParentIdValue'), array('sfPropelActAsNestedSetBehavior', 'setScopeIdValue'), array('sfPropelActAsNestedSetBehavior', 'makeRoot'), array('sfPropelActAsNestedSetBehavior', 'insertAsFirstChildOf'), array('sfPropelActAsNestedSetBehavior', 'insertAsLastChildOf'), array('sfPropelActAsNestedSetBehavior', 'insertAsNextSiblingOf'), array('sfPropelActAsNestedSetBehavior', 'insertAsPrevSiblingOf'), array('sfPropelActAsNestedSetBehavior', 'insertAsParentOf'), array('sfPropelActAsNestedSetBehavior', 'hasChildren'), array('sfPropelActAsNestedSetBehavior', 'getChildren'), array('sfPropelActAsNestedSetBehavior', 'getParent'), array('sfPropelActAsNestedSetBehavior', 'getNumberOfChildren'), array('sfPropelActAsNestedSetBehavior', 'getDescendants'), array('sfPropelActAsNestedSetBehavior', 'getNumberOfDescendants'), array('sfPropelActAsNestedSetBehavior', 'isRoot'), array('sfPropelActAsNestedSetBehavior', 'hasParent'), array('sfPropelActAsNestedSetBehavior', 'hasNextSibling'), array('sfPropelActAsNestedSetBehavior', 'hasPrevSibling'), array('sfPropelActAsNestedSetBehavior', 'isLeaf'), array('sfPropelActAsNestedSetBehavior', 'isEqualTo'), array('sfPropelActAsNestedSetBehavior', 'isChildOf'), array('sfPropelActAsNestedSetBehavior', 'isDescendantOf'), array('sfPropelActAsNestedSetBehavior', 'moveToFirstChildOf'), array('sfPropelActAsNestedSetBehavior', 'moveToLastChildOf'), array('sfPropelActAsNestedSetBehavior', 'moveToNextSiblingOf'), array('sfPropelActAsNestedSetBehavior', 'moveToPrevSiblingOf'), array('sfPropelActAsNestedSetBehavior', 'deleteChildren'), array('sfPropelActAsNestedSetBehavior', 'deleteDescendants'), array('sfPropelActAsNestedSetBehavior', 'retrieveFirstChild'), array('sfPropelActAsNestedSetBehavior', 'retrieveLastChild'), array('sfPropelActAsNestedSetBehavior', 'retrieveNextSibling'), array('sfPropelActAsNestedSetBehavior', 'retrievePrevSibling'), array('sfPropelActAsNestedSetBehavior', 'retrieveParent'), array('sfPropelActAsNestedSetBehavior', 'retrieveSiblings'), array('sfPropelActAsNestedSetBehavior', 'getLevel'), array('sfPropelActAsNestedSetBehavior', 'setLevel'), array('sfPropelActAsNestedSetBehavior', 'getPath'), array('sfPropelActAsNestedSetBehavior', 'reload')));
开发者ID:net7,项目名称:Talia-CMS,代码行数:12,代码来源:config.php


示例15: __toString

<?php

/**
 * Subclass for representing a row from the 'ct_campus' table.
 *
 * 
 *
 * @package lib.model
 */
class Campus extends BaseCampus
{
    public function __toString()
    {
        return $this->getName();
    }
    public function getAboutBrief($length = 100)
    {
        if (strlen($this->getAbout()) > $length + 3) {
            return substr($this->getAbout(), 0, $length) . '...';
        }
        return $this->getAbout();
    }
}
$columns_map = array('from' => CampusPeer::NAME, 'to' => CampusPeer::SLUG);
sfPropelBehavior::add('Campus', array('sfPropelActAsSluggableBehavior' => array('columns' => $columns_map, 'separator' => '_', 'permanent' => false)));
sfPropelBehavior::add('Campus', array('sfPropelUuidBehavior'));
开发者ID:sgrove,项目名称:cothinker,代码行数:26,代码来源:Campus.php


示例16: getRelatedModel

 */
require_once sfConfig::get('sf_plugins_dir') . '/nahoWikiPlugin/lib/model/plugin/PluginnahoWikiRevision.php';
class nahoWikiRevision extends PluginnahoWikiRevision
{
    public function getRelatedModel()
    {
        $name = $this->getnahoWikiPage()->getName();
        list($prefix, $id) = explode("_", $name);
        switch ($prefix) {
            case 'atto':
                return 'OppAtto';
                break;
            case 'votazione':
                return 'OppVotazione';
                break;
            case 'emendamento':
                return 'OppEmendamento';
                break;
        }
    }
    public function getRelatedId()
    {
        $name = $this->getnahoWikiPage()->getName();
        list($prefix, $id) = explode("_", $name);
        return $id;
    }
}
# nel progetto Openparlamento, questa classe è anche
# generatore di notizie di community
sfPropelBehavior::add('nahoWikiRevision', array('deppPropelActAsCommunityNewsGeneratorBehavior' => array('rel_model_getter' => 'getRelatedModel', 'rel_id_getter' => 'getRelatedId')));
开发者ID:valerio-bozzolan,项目名称:openparlamento,代码行数:30,代码来源:nahoWikiRevision.php


示例17: getPage

    public function getPage($name)
    {
        $page = nahoWikiPagePeer::retrieveByWikiIdName($this->getId(), $name);
        if ($page == null) {
            $page = $this->initPage($name);
        }
        return $page;
    }
    public function getProject()
    {
        if (strtolower($this->getModel()) == 'project') {
            $project = ProjectPeer::retrieveByPk($this->getModelId());
            if ($project != null) {
                return $project;
            }
        }
        return false;
    }
    public function getPages()
    {
        $c = new Criteria();
        $c->addAscendingOrderByColumn(nahoWikiPagePeer::NAME);
        $c->add(nahoWikiPagePeer::WIKI_ID, $this->getId());
        return nahoWikiPagePeer::doSelect($c);
    }
}
$xyz = array('from' => nahoWikiWikiPeer::TITLE, 'to' => nahoWikiWikiPeer::SLUG);
sfPropelBehavior::add('nahoWikiWiki', array('sfPropelActAsCommentableBehavior'));
sfPropelBehavior::add('nahoWikiWiki', array('sfPropelUuidBehavior'));
sfPropelBehavior::add('nahoWikiWiki', array('sfPropelActAsSluggableBehavior' => array('columns' => $xyz, 'separator' => '_', 'permanent' => false)));
开发者ID:sgrove,项目名称:cothinker,代码行数:30,代码来源:nahoWikiWiki.php


示例18: getStudent

     */
    public function getStudent()
    {
        $student_attendances = $this->getStudentAttendances();
        return array_shift($student_attendances)->getStudent();
    }
    /**
     * Returns a string of the days jusficated.
     *
     * @return string;
     */
    public function getJustifiedDays()
    {
        $student_attendances = $this->getStudentAttendances();
        $days = array_shift($student_attendances)->getDay();
        foreach ($student_attendances as $student_attendance) {
            $days .= '; ' . $student_attendance->getDay();
        }
        return $days;
    }
    public function canDelete()
    {
        return true;
    }
    public function renderChangeLog()
    {
        return ncChangelogRenderer::render($this, 'tooltip', array('credentials' => 'view_changelog'));
    }
}
sfPropelBehavior::add('StudentAttendanceJustification', array('changelog'));
开发者ID:nvidela,项目名称:kimkelen,代码行数:30,代码来源:StudentAttendanceJustification.php


示例19: __toString

 *
 * Kimkëlen is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License v2.0 as published by
 * the Free Software Foundation.
 *
 * Kimkëlen is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Kimkëlen.  If not, see <http://www.gnu.org/licenses/gpl-2.0.html>.
 */
class StudentFree extends BaseStudentFree
{
    public function __toString()
    {
        sfContext::getInstance()->getConfiguration()->loadHelpers('I18N');
        if (!is_null($this->getCareerSchoolYearPeriod())) {
            return __('The student is free in the %period%', array('%period%' => $this->getCareerSchoolYearPeriod()));
        } else {
            return __('The student is free');
        }
    }
    public function renderChangeLog()
    {
        return ncChangelogRenderer::render($this, 'tooltip', array('credentials' => 'view_changelog'));
    }
}
sfPropelBehavior::add('StudentFree', array('changelog'));
开发者ID:nvidela,项目名称:kimkelen,代码行数:30,代码来源:StudentFree.php


示例20: array

<?php

sfPropelBehavior::registerHooks('audit', array(':delete:post' => array('sfPropelAuditBehavior', 'postDelete'), 'Peer:doInsert:post' => array('sfPropelAuditBehavior', 'postDoInsert'), 'Peer:doUpdate:post' => array('sfPropelAuditBehavior', 'postDoUpdate')));
开发者ID:royalterra,项目名称:pdns-gui,代码行数:3,代码来源:config.php



注:本文中的sfPropelBehavior类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP sfPropelPager类代码示例发布时间:2022-05-23
下一篇:
PHP sfPropel类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap