idx
int64
0
60.3k
question
stringlengths
64
4.24k
target
stringlengths
5
618
14,500
public static function locallangFolder ( string $ extensionKey , string $ prefix = 'LLL:EXT:' ) : string { return self :: languageFolder ( $ extensionKey , $ prefix ) ; }
Gets the locallang folder from an extension key .
14,501
public static function publicFolder ( string $ extensionKey , string $ prefix = 'EXT:' ) : string { $ resourcesFolder = self :: resourcesFolder ( $ extensionKey , $ prefix ) ; return "${resourcesFolder}/Public" ; }
Gets the public folder from an extension key .
14,502
public static function getPublicFolder ( string $ extensionKey , string $ prefix = 'EXT:' ) : string { return self :: publicFolder ( $ extensionKey , $ prefix ) ; }
Alias for the publicFolder function .
14,503
public static function assetsFolder ( string $ extensionKey , string $ prefix = 'EXT:' ) : string { $ publicFolder = self :: publicFolder ( $ extensionKey , $ prefix ) ; return "${publicFolder}/Assets" ; }
Gets the assets folder from an extension key .
14,504
public static function getAssetsFolder ( string $ extensionKey , string $ prefix = 'EXT:' ) : string { return self :: assetsFolder ( $ extensionKey , $ prefix ) ; }
Alias for the assetsFolder function .
14,505
public static function iconsFolder ( string $ extensionKey , string $ prefix = 'EXT:' ) : string { $ publicFolder = self :: publicFolder ( $ extensionKey , $ prefix ) ; return "${publicFolder}/Icons" ; }
Gets the icons folder from an extension key .
14,506
public static function getIconsFolder ( string $ extensionKey , string $ prefix = 'EXT:' ) : string { return self :: iconsFolder ( $ extensionKey , $ prefix ) ; }
Alias for the iconsFolder function .
14,507
public static function placeholdersFolder ( string $ extensionKey , string $ prefix = 'EXT:' ) : string { $ publicFolder = self :: publicFolder ( $ extensionKey , $ prefix ) ; return "${publicFolder}/Placeholders" ; }
Gets the placeholders folder from an extension key .
14,508
public static function getPlaceholdersFolder ( string $ extensionKey , string $ prefix = 'EXT:' ) : string { return self :: placeholdersFolder ( $ extensionKey , $ prefix ) ; }
Alias for the placeholdersFolder function .
14,509
public static function samplesFolder ( string $ extensionKey , string $ prefix = 'EXT:' ) : string { $ publicFolder = self :: publicFolder ( $ extensionKey , $ prefix ) ; return "${publicFolder}/Samples" ; }
Gets the samples folder from an extension key .
14,510
public static function getSamplesFolder ( string $ extensionKey , string $ prefix = 'EXT:' ) : string { return self :: samplesFolder ( $ extensionKey , $ prefix ) ; }
Alias for the samplesFolder function .
14,511
public function getAsset ( $ dist = false ) { return Yii :: app ( ) -> assetManager -> publish ( YiiBase :: getPathOfAlias ( 'application.modules.dashboard.assets' ) , true , - 1 , YII_DEBUG ) ; }
Retrieve assetManager from anywhere without having to instatiate this code
14,512
public function beforeAction ( $ action ) { if ( ! Yii :: app ( ) -> getRequest ( ) -> isSecureConnection && Cii :: getConfig ( 'forceSecureSSL' , false ) ) $ this -> redirect ( 'https://' . Yii :: app ( ) -> getRequest ( ) -> serverName . Yii :: app ( ) -> getRequest ( ) -> requestUri ) ; Yii :: app ( ) -> setTheme ( NULL ) ; return parent :: beforeAction ( $ action ) ; }
Before action method
14,513
public function getPrice ( $ price , $ discount , $ request ) { if ( ! $ this -> isValid ( $ discount , $ request ) ) throw new Discount_Exception_InvalidDiscount ( ) ; $ newPrice = $ price - ( $ price * $ discount -> off_value / 100 ) ; return $ newPrice ; }
Compute new price after use given discount .
14,514
public function index ( Request $ request ) { $ mensajes = $ this -> contactoMensajeRepo -> findMessageAndPaginate ( $ request ) ; return view ( 'admin.formularios.contacto.list' , compact ( 'mensajes' ) ) ; }
Show the form for editing the specified adminconfig .
14,515
protected function loadConfig ( ) { $ this -> container [ 'app' ] -> getConfig ( ) -> load ( $ this -> getConfigFiles ( ) ) ; $ this -> dispatchEvent ( KernelEvents :: CONFIG_LOADED , new KernelEvent ( $ this -> container ) ) ; }
Load Config from config files
14,516
public function createConditionGenerator ( $ query , SearchCondition $ searchCondition ) { if ( $ query instanceof NativeQuery ) { return new NativeQueryConditionGenerator ( $ query , $ searchCondition ) ; } if ( $ query instanceof Query || $ query instanceof QueryBuilder ) { return new DqlConditionGenerator ( $ query , $ searchCondition ) ; } throw new \ InvalidArgumentException ( sprintf ( 'Query "%s" is not supported by the DoctrineOrmFactory.' , \ get_class ( $ query ) ) ) ; }
Creates a new ConditionGenerator for the SearchCondition .
14,517
public function createCachedConditionGenerator ( $ conditionGenerator , $ ttl = null ) : ConditionGenerator { if ( null === $ this -> cacheDriver ) { return $ conditionGenerator ; } if ( $ conditionGenerator instanceof DqlConditionGenerator ) { return new CachedDqlConditionGenerator ( $ conditionGenerator , $ this -> cacheDriver , $ ttl ) ; } elseif ( $ conditionGenerator instanceof NativeQueryConditionGenerator ) { return new CachedNativeQueryConditionGenerator ( $ conditionGenerator , $ this -> cacheDriver , $ ttl ) ; } throw new \ InvalidArgumentException ( sprintf ( 'ConditionGenerator "%s" is not supported by the DoctrineOrmFactory.' , \ get_class ( $ conditionGenerator ) ) ) ; }
Creates a new CachedConditionGenerator instance for the ConditionGenerator .
14,518
public static function mapMethod ( array $ sequence , $ method , array $ arguments = array ( ) ) { if ( empty ( $ arguments ) ) { $ f = function ( $ element ) use ( $ method ) { return $ element -> $ method ( ) ; } ; } else { $ f = function ( $ element ) use ( $ method , $ arguments ) { return call_user_func_array ( array ( $ element , $ method ) , $ arguments ) ; } ; } return array_map ( $ f , $ sequence ) ; }
Return an array of the results of calling a method for each element of a sequence .
14,519
public static function some ( array $ sequence , $ predicate ) { foreach ( $ sequence as $ element ) { if ( call_user_func ( $ predicate , $ element ) ) { return true ; } } return false ; }
Return TRUE if at leat one element of sequence matches predicate .
14,520
public static function every ( array $ sequence , $ predicate ) { foreach ( $ sequence as $ element ) { if ( ! call_user_func ( $ predicate , $ element ) ) { return false ; } } return true ; }
Return TRUE if every element of sequence fullfills predicate .
14,521
public static function flatten ( array $ sequence ) { $ flat = array ( ) ; array_walk_recursive ( $ sequence , function ( $ element ) use ( & $ flat ) { $ flat [ ] = $ element ; } ) ; return $ flat ; }
Flatten sequence .
14,522
public function addPrefix ( $ table ) { if ( strpos ( $ table , '`' ) !== false ) { return $ table ; } preg_match ( '/([\w_\.]+)( (as )?[\w_]+)?/i' , $ table , $ match ) ; $ table = count ( $ match ) == 2 ? $ table : $ match [ 1 ] ; $ alias = '' ; if ( count ( $ match ) > 2 ) { $ alias = $ match [ 2 ] ; } if ( strpos ( $ table , '.' ) !== false ) { list ( $ schema , $ table ) = explode ( '.' , $ table ) ; return sprintf ( '`%s`.`%s`%s' , $ schema , $ table , $ alias ) ; } if ( strpos ( $ table , '!' ) === 0 ) { return sprintf ( '`%s`%s' , substr ( $ table , 1 ) , $ alias ) ; } $ prefix = $ this -> getEngine ( ) -> getConfig ( 'prefix' ) ; if ( empty ( $ prefix ) ) { return sprintf ( '`%s`%s' , $ table , $ alias ) ; } return sprintf ( '`%s`%s' , $ prefix . Str :: firstReplace ( $ table , $ prefix ) , $ alias ) ; }
ADD TABLE PREFIX
14,523
function vardump ( $ var , $ depth = 0 ) { if ( is_array ( $ var ) ) { $ result = "Array (" . count ( $ var ) . ")<BR>" ; foreach ( array_keys ( $ var ) as $ key ) { $ result .= $ this -> tab [ $ depth ] . "<B>$key</B>: " . $ this -> vardump ( $ var [ $ key ] , $ depth + 1 ) ; } return $ result ; } else { $ ret = htmlentities ( $ var ) . "<BR>" ; return $ ret ; } }
Recursive Variable Display Output
14,524
function highlight_html ( $ code ) { $ code = htmlentities ( $ code ) ; $ code = preg_replace ( '/([a-zA-Z_]+)=/' , '<font color="#FF0000">$1=</font>' , $ code ) ; $ code = preg_replace ( '/(&lt;[\/a-zA-Z0-9&;]+)/' , '<font color="#0000FF">$1</font>' , $ code ) ; $ code = str_replace ( '&lt;!--' , '<font color="#008080">&lt;!--' , $ code ) ; $ code = str_replace ( '--&gt;' , '--&gt;</font>' , $ code ) ; $ code = preg_replace ( '/[\r\n]+/' , "\n" , $ code ) ; return $ code ; }
Highlight HTML Source
14,525
public function send ( $ code , $ body = '' ) { if ( ! isset ( $ this -> codes [ $ code ] ) ) { $ statusCode = 500 ; $ body = 'API attempted to return an unknown HTTP status.' ; } if ( ! $ body ) $ body = $ this -> codes [ $ code ] ; header ( 'HTTP/1.1 ' . $ code . ' ' . $ this -> codes [ $ code ] ) ; header ( 'Content-type: application/json' ) ; echo json_encode ( $ body ) ; exit ; }
Output a JSON formatted response of the supplied body param along with the supplied code param as the HTTP status code .
14,526
protected function viewDetail ( $ id , $ field ) { $ model = $ this -> findModel ( $ id ) ; $ definition = array_merge ( $ model -> fields ( ) , $ model -> extraFields ( ) ) ; if ( isset ( $ definition [ $ field ] ) ) { return is_string ( $ definition [ $ field ] ) ? $ model -> { $ definition [ $ field ] } : call_user_func ( $ definition [ $ field ] , $ model , $ field ) ; } elseif ( in_array ( $ field , $ definition ) ) { return $ model -> $ field ; } throw new NotFoundHttpException ( "Object not found: $id/$field" ) ; }
Displays a single filed of model .
14,527
protected function callFunction ( $ functionName ) { $ functionArgs = func_get_args ( ) ; $ params = array_splice ( $ functionArgs , 1 ) ; foreach ( $ this -> plugins as $ plugin ) { $ functionList = $ plugin -> getFunctionList ( ) ; if ( in_array ( $ functionName , $ functionList ) === true ) { return $ plugin -> callFunction ( $ functionName , $ params ) ; } } throw new JigException ( "Function $functionName not known in plugins." ) ; }
Used to call a function in a template
14,528
protected function startRenderBlock ( $ blockName , $ segmentText ) { foreach ( $ this -> plugins as $ plugin ) { $ blockRenderList = $ plugin -> getBlockRenderList ( ) ; if ( in_array ( $ blockName , $ blockRenderList ) === true ) { echo $ plugin -> callBlockRenderStart ( $ blockName , $ segmentText ) ; ob_start ( ) ; return ; } } throw new JigException ( "Block $blockName not known for starting block in plugins." ) ; }
Called when a block is started in a template .
14,529
protected function endRenderBlock ( $ blockName ) { $ contents = ob_get_contents ( ) ; ob_end_clean ( ) ; foreach ( $ this -> plugins as $ plugin ) { $ blockRenderList = $ plugin -> getBlockRenderList ( ) ; if ( in_array ( $ blockName , $ blockRenderList ) === true ) { echo $ plugin -> callBlockRenderEnd ( $ blockName , $ contents ) ; return ; } } echo $ contents ; throw new JigException ( "Block $blockName not known for ending block in plugins." ) ; }
Called when a block is ended in a template .
14,530
public function getServerInfo ( $ login ) { static $ lockAcquired = false ; if ( isset ( $ this -> servers [ $ login ] ) ) { $ cacheKey = $ this -> _getServerInfoCacheKey ( $ login ) ; $ cacheResult = $ this -> serverInfoCache -> fetch ( $ cacheKey ) ; if ( $ cacheResult ) { return $ cacheResult ; } else if ( ! $ lockAcquired ) { $ this -> semaphore -> aquire ( $ cacheKey ) ; $ lockAcquired = true ; $ data = $ this -> getServerInfo ( $ login ) ; $ lockAcquired = false ; $ this -> semaphore -> release ( $ cacheKey ) ; return $ data ; } else { $ data = $ this -> _getServerInfo ( $ login ) ; $ this -> serverInfoCache -> save ( $ cacheKey , $ data , $ this -> cacheTimeOutInfo ) ; return $ data ; } } return null ; }
Returns server information . If server information not in cache will make call to the dedicated server . Try to use this with ajax calls in order to have a faster website .
14,531
public function getServerChatLines ( $ login ) { static $ lockAcquired = false ; if ( isset ( $ this -> servers [ $ login ] ) ) { $ cacheKey = $ this -> _getServerChatCacheKey ( $ login ) ; $ cacheResult = $ this -> serverInfoCache -> fetch ( $ cacheKey ) ; if ( $ cacheResult ) { return $ cacheResult ; } else if ( ! $ lockAcquired ) { $ this -> semaphore -> aquire ( $ cacheKey ) ; $ lockAcquired = true ; $ data = $ this -> getServerChatLines ( $ login ) ; $ lockAcquired = false ; $ this -> semaphore -> release ( $ cacheKey ) ; return $ data ; } else { $ data = array ( ) ; try { $ connection = $ this -> getConnection ( $ login ) ; if ( $ connection ) { $ data = $ connection -> getChatLines ( ) ; } } catch ( \ Exception $ e ) { } $ this -> serverInfoCache -> save ( $ cacheKey , $ data , $ this -> cacheTimeOutChat ) ; return $ data ; } } return null ; }
Returns chat lines . Try to use this with ajax calls in order to have a faster website .
14,532
public function getMapList ( $ login ) { static $ lockAcquired = false ; if ( isset ( $ this -> servers [ $ login ] ) ) { $ cacheKey = $ this -> _getServerMapsCacheKey ( $ login ) ; $ cacheResult = $ this -> serverInfoCache -> fetch ( $ cacheKey ) ; if ( $ cacheResult ) { return $ cacheResult ; } else if ( ! $ lockAcquired ) { $ this -> semaphore -> aquire ( $ cacheKey ) ; $ lockAcquired = true ; $ data = $ this -> getMapList ( $ login ) ; $ lockAcquired = false ; $ this -> semaphore -> release ( $ cacheKey ) ; return $ data ; } else { $ data = array ( ) ; try { $ connection = $ this -> getConnection ( $ login ) ; if ( $ connection ) { $ data = $ connection -> getMapList ( - 1 , 0 ) ; $ this -> serverInfoCache -> save ( $ cacheKey , $ data , $ this -> cacheTimeOutMap ) ; } } catch ( \ Exception $ e ) { $ this -> serverInfoCache -> save ( $ cacheKey , array ( ) , $ this -> cacheTimeOutMapRetry ) ; } return $ data ; } } }
Returns list of maps on the server . If list of map not in cache will make a call to the dedicatd server . Try to use this with ajax calls in order to have a faster website .
14,533
public function getServerNames ( ) { $ serverNames = array ( ) ; foreach ( $ this -> servers as $ login => $ data ) { $ serverNames [ $ login ] = $ data [ 'name' ] ; } return $ serverNames ; }
Returns login server name association . This is the name you defined in the config and therfore won t make any dedicated calls .
14,534
public function getConnection ( $ login ) { if ( isset ( $ this -> servers [ $ login ] ) ) { if ( ! isset ( $ this -> connections [ $ login ] ) ) { $ conf = $ this -> servers [ $ login ] ; $ this -> connections [ $ login ] = Connection :: factory ( $ conf [ 'host' ] , $ conf [ 'port' ] , 1 , $ conf [ 'user' ] , $ conf [ 'password' ] ) ; } return $ this -> connections [ $ login ] ; } return null ; }
Connects to the dedicated server API if connection already established will send existing connextion
14,535
public function findFormClassName ( ) { $ this -> runIfNotCached ( 'formClassName' , function ( ) { return $ this -> findFormTag ( ) -> attr ( self :: FORM_CLASS_NAME_ATTR_NAME ) ; } ) ; return $ this -> formClassName ; }
Get class - name for the form
14,536
private function transpileFields ( ) { $ formElements = 'input, select, textarea, button' ; $ this -> findFormTag ( ) -> filter ( $ formElements ) -> each ( function ( Crawler $ node , $ i ) { if ( null !== $ node -> attr ( 'type' ) ) { $ type = $ node -> attr ( 'type' ) ; } else { $ type = $ node -> nodeName ( ) ; } $ type = str_replace ( '\"' , '' , $ type ) ; $ field = $ this -> fieldFactory ( $ type , $ node ) ; if ( $ type === 'select' ) { $ options = $ node -> filter ( 'option' ) ; $ options -> each ( function ( $ option ) use ( $ field ) { $ optionField = $ this -> fieldFactory ( 'option' , $ option ) ; $ field -> addOption ( $ optionField ) ; } ) ; } if ( $ type === 'file' ) { try { $ field -> compactFiles ( $ _FILES , $ this -> uploadDir ) ; } catch ( NoFileUploadedException $ noFileEx ) { } } $ this -> fields [ $ field -> getName ( ) ] = $ field ; } ) ; return $ this -> fields ; }
Find fields in markup
14,537
private function runIfNotCached ( $ variableName , callable $ function ) { if ( null === $ this -> { $ variableName } ) { if ( null !== $ result = $ function ( ) ) { $ this -> { $ variableName } = $ result ; } } }
Check if a variable is empty and run function to
14,538
public function getHydratorClassName ( $ fqcn ) { $ config = new Configuration ( $ fqcn ) ; $ config -> setAutoGenerateProxies ( $ this -> generateProxies ) ; $ config -> setGeneratedClassesTargetDir ( $ this -> cacheDir ) ; return $ config -> createFactory ( ) -> getHydratorClass ( ) ; }
Gets the hydrator class name .
14,539
protected function bootstrapEnvironment ( ) { $ this [ "debug" ] = ! ! $ this [ "app.config" ] [ "environment.debug" ] ; Errorhandler :: register ( ) ; ExceptionHandler :: register ( $ this [ "debug" ] ) ; Request :: enableHttpMethodParameterOverride ( ) ; }
Prepare the environment registering the Error and Exception handlers and allowing HTTP method parameter overriding .
14,540
public function valid ( $ language ) { if ( empty ( $ language ) ) { return false ; } if ( $ language == 'en' || $ language == 'de' || $ language == 'pl' || $ language == 'ru' ) { return true ; } return false ; }
validation of language
14,541
public function getHtml ( array $ attributes = [ ] ) : string { return self :: buildTag ( 'option' , $ this -> getLabel ( ) , array_merge ( [ 'value' => $ this -> getValue ( ) , 'selected' => $ this -> isSelected , ] , $ attributes ) ) ; }
Returns the option html .
14,542
public function setEntityClassName ( $ name ) { $ trimmedName = trim ( $ name , '\\' ) ; if ( ! class_exists ( $ trimmedName ) ) { throw new RuntimeException ( sprintf ( 'The class "%s" does not exist.' , $ trimmedName ) ) ; } $ this -> entityClassName = $ trimmedName ; return $ this ; }
Sets the FQCN of the entity that is used .
14,543
private function maybeAppendWithKey ( string $ key , array & $ result , array $ values ) : void { if ( [ ] !== $ values ) { $ result [ $ key ] = $ values ; } }
append values to result if not empty
14,544
public function setObject ( ChildObject $ v = null ) { if ( null !== $ this -> aObject && $ v !== $ this -> aObject ) { $ this -> oldObjectSkillCount = $ this -> aObject ; } if ( $ v === null ) { $ this -> setObjectId ( NULL ) ; } else { $ this -> setObjectId ( $ v -> getId ( ) ) ; } $ this -> aObject = $ v ; if ( $ v !== null ) { $ v -> addSkill ( $ this ) ; } return $ this ; }
Declares an association between this object and a ChildObject object .
14,545
public function getObject ( ConnectionInterface $ con = null ) { if ( $ this -> aObject === null && ( $ this -> object_id !== null ) ) { $ this -> aObject = ChildObjectQuery :: create ( ) -> findPk ( $ this -> object_id , $ con ) ; } return $ this -> aObject ; }
Get the associated ChildObject object
14,546
public function setFeaturedPicture ( ChildPicture $ v = null ) { if ( $ v === null ) { $ this -> setPictureId ( NULL ) ; } else { $ this -> setPictureId ( $ v -> getId ( ) ) ; } $ this -> aFeaturedPicture = $ v ; if ( $ v !== null ) { $ v -> addFeaturedSkill ( $ this ) ; } return $ this ; }
Declares an association between this object and a ChildPicture object .
14,547
public function getFeaturedPicture ( ConnectionInterface $ con = null ) { if ( $ this -> aFeaturedPicture === null && ( $ this -> picture_id !== null ) ) { $ this -> aFeaturedPicture = ChildPictureQuery :: create ( ) -> findPk ( $ this -> picture_id , $ con ) ; } return $ this -> aFeaturedPicture ; }
Get the associated ChildPicture object
14,548
public function setKstrukturRoot ( ChildKstruktur $ v = null ) { if ( $ v === null ) { $ this -> setKstrukturId ( NULL ) ; } else { $ this -> setKstrukturId ( $ v -> getId ( ) ) ; } $ this -> aKstrukturRoot = $ v ; if ( $ v !== null ) { $ v -> addRootSkill ( $ this ) ; } return $ this ; }
Declares an association between this object and a ChildKstruktur object .
14,549
public function getKstrukturRoot ( ConnectionInterface $ con = null ) { if ( $ this -> aKstrukturRoot === null && ( $ this -> kstruktur_id !== null ) ) { $ this -> aKstrukturRoot = ChildKstrukturQuery :: create ( ) -> findPk ( $ this -> kstruktur_id , $ con ) ; } return $ this -> aKstrukturRoot ; }
Get the associated ChildKstruktur object
14,550
public function setFunctionPhaseRoot ( ChildFunctionPhase $ v = null ) { if ( $ v === null ) { $ this -> setFunctionPhaseId ( NULL ) ; } else { $ this -> setFunctionPhaseId ( $ v -> getId ( ) ) ; } $ this -> aFunctionPhaseRoot = $ v ; if ( $ v !== null ) { $ v -> addRootSkill ( $ this ) ; } return $ this ; }
Declares an association between this object and a ChildFunctionPhase object .
14,551
public function getFunctionPhaseRoot ( ConnectionInterface $ con = null ) { if ( $ this -> aFunctionPhaseRoot === null && ( $ this -> function_phase_id !== null ) ) { $ this -> aFunctionPhaseRoot = ChildFunctionPhaseQuery :: create ( ) -> findPk ( $ this -> function_phase_id , $ con ) ; } return $ this -> aFunctionPhaseRoot ; }
Get the associated ChildFunctionPhase object
14,552
public function initVariations ( $ overrideExisting = true ) { if ( null !== $ this -> collVariations && ! $ overrideExisting ) { return ; } $ this -> collVariations = new ObjectCollection ( ) ; $ this -> collVariations -> setModel ( '\gossi\trixionary\model\Skill' ) ; }
Initializes the collVariations collection .
14,553
public function getVariationsJoinSport ( Criteria $ criteria = null , ConnectionInterface $ con = null , $ joinBehavior = Criteria :: LEFT_JOIN ) { $ query = ChildSkillQuery :: create ( null , $ criteria ) ; $ query -> joinWith ( 'Sport' , $ joinBehavior ) ; return $ this -> getVariations ( $ query , $ con ) ; }
If this collection has already been initialized with an identical criteria it returns the collection . Otherwise if this Skill is new it will return an empty collection ; or if this Skill has previously been saved it will retrieve related Variations from storage .
14,554
public function initMultiples ( $ overrideExisting = true ) { if ( null !== $ this -> collMultiples && ! $ overrideExisting ) { return ; } $ this -> collMultiples = new ObjectCollection ( ) ; $ this -> collMultiples -> setModel ( '\gossi\trixionary\model\Skill' ) ; }
Initializes the collMultiples collection .
14,555
public function getMultiplesJoinFunctionPhaseRoot ( Criteria $ criteria = null , ConnectionInterface $ con = null , $ joinBehavior = Criteria :: LEFT_JOIN ) { $ query = ChildSkillQuery :: create ( null , $ criteria ) ; $ query -> joinWith ( 'FunctionPhaseRoot' , $ joinBehavior ) ; return $ this -> getMultiples ( $ query , $ con ) ; }
If this collection has already been initialized with an identical criteria it returns the collection . Otherwise if this Skill is new it will return an empty collection ; or if this Skill has previously been saved it will retrieve related Multiples from storage .
14,556
public function initLineagesRelatedBySkillId ( $ overrideExisting = true ) { if ( null !== $ this -> collLineagesRelatedBySkillId && ! $ overrideExisting ) { return ; } $ this -> collLineagesRelatedBySkillId = new ObjectCollection ( ) ; $ this -> collLineagesRelatedBySkillId -> setModel ( '\gossi\trixionary\model\Lineage' ) ; }
Initializes the collLineagesRelatedBySkillId collection .
14,557
public function initLineagesRelatedByAncestorId ( $ overrideExisting = true ) { if ( null !== $ this -> collLineagesRelatedByAncestorId && ! $ overrideExisting ) { return ; } $ this -> collLineagesRelatedByAncestorId = new ObjectCollection ( ) ; $ this -> collLineagesRelatedByAncestorId -> setModel ( '\gossi\trixionary\model\Lineage' ) ; }
Initializes the collLineagesRelatedByAncestorId collection .
14,558
public function initChildren ( $ overrideExisting = true ) { if ( null !== $ this -> collChildren && ! $ overrideExisting ) { return ; } $ this -> collChildren = new ObjectCollection ( ) ; $ this -> collChildren -> setModel ( '\gossi\trixionary\model\SkillDependency' ) ; }
Initializes the collChildren collection .
14,559
public function initParents ( $ overrideExisting = true ) { if ( null !== $ this -> collParents && ! $ overrideExisting ) { return ; } $ this -> collParents = new ObjectCollection ( ) ; $ this -> collParents -> setModel ( '\gossi\trixionary\model\SkillDependency' ) ; }
Initializes the collParents collection .
14,560
public function initParts ( $ overrideExisting = true ) { if ( null !== $ this -> collParts && ! $ overrideExisting ) { return ; } $ this -> collParts = new ObjectCollection ( ) ; $ this -> collParts -> setModel ( '\gossi\trixionary\model\SkillPart' ) ; }
Initializes the collParts collection .
14,561
public function initComposites ( $ overrideExisting = true ) { if ( null !== $ this -> collComposites && ! $ overrideExisting ) { return ; } $ this -> collComposites = new ObjectCollection ( ) ; $ this -> collComposites -> setModel ( '\gossi\trixionary\model\SkillPart' ) ; }
Initializes the collComposites collection .
14,562
public function initSkillGroups ( $ overrideExisting = true ) { if ( null !== $ this -> collSkillGroups && ! $ overrideExisting ) { return ; } $ this -> collSkillGroups = new ObjectCollection ( ) ; $ this -> collSkillGroups -> setModel ( '\gossi\trixionary\model\SkillGroup' ) ; }
Initializes the collSkillGroups collection .
14,563
public function getSkillGroups ( Criteria $ criteria = null , ConnectionInterface $ con = null ) { $ partial = $ this -> collSkillGroupsPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collSkillGroups || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collSkillGroups ) { $ this -> initSkillGroups ( ) ; } else { $ collSkillGroups = ChildSkillGroupQuery :: create ( null , $ criteria ) -> filterBySkill ( $ this ) -> find ( $ con ) ; if ( null !== $ criteria ) { if ( false !== $ this -> collSkillGroupsPartial && count ( $ collSkillGroups ) ) { $ this -> initSkillGroups ( false ) ; foreach ( $ collSkillGroups as $ obj ) { if ( false == $ this -> collSkillGroups -> contains ( $ obj ) ) { $ this -> collSkillGroups -> append ( $ obj ) ; } } $ this -> collSkillGroupsPartial = true ; } return $ collSkillGroups ; } if ( $ partial && $ this -> collSkillGroups ) { foreach ( $ this -> collSkillGroups as $ obj ) { if ( $ obj -> isNew ( ) ) { $ collSkillGroups [ ] = $ obj ; } } } $ this -> collSkillGroups = $ collSkillGroups ; $ this -> collSkillGroupsPartial = false ; } } return $ this -> collSkillGroups ; }
Gets an array of ChildSkillGroup objects which contain a foreign key that references this object .
14,564
public function addSkillGroup ( ChildSkillGroup $ l ) { if ( $ this -> collSkillGroups === null ) { $ this -> initSkillGroups ( ) ; $ this -> collSkillGroupsPartial = true ; } if ( ! $ this -> collSkillGroups -> contains ( $ l ) ) { $ this -> doAddSkillGroup ( $ l ) ; } return $ this ; }
Method called to associate a ChildSkillGroup object to this object through the ChildSkillGroup foreign key attribute .
14,565
public function getSkillGroupsJoinGroup ( Criteria $ criteria = null , ConnectionInterface $ con = null , $ joinBehavior = Criteria :: LEFT_JOIN ) { $ query = ChildSkillGroupQuery :: create ( null , $ criteria ) ; $ query -> joinWith ( 'Group' , $ joinBehavior ) ; return $ this -> getSkillGroups ( $ query , $ con ) ; }
If this collection has already been initialized with an identical criteria it returns the collection . Otherwise if this Skill is new it will return an empty collection ; or if this Skill has previously been saved it will retrieve related SkillGroups from storage .
14,566
public function initPictures ( $ overrideExisting = true ) { if ( null !== $ this -> collPictures && ! $ overrideExisting ) { return ; } $ this -> collPictures = new ObjectCollection ( ) ; $ this -> collPictures -> setModel ( '\gossi\trixionary\model\Picture' ) ; }
Initializes the collPictures collection .
14,567
public function getPictures ( Criteria $ criteria = null , ConnectionInterface $ con = null ) { $ partial = $ this -> collPicturesPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collPictures || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collPictures ) { $ this -> initPictures ( ) ; } else { $ collPictures = ChildPictureQuery :: create ( null , $ criteria ) -> filterBySkill ( $ this ) -> find ( $ con ) ; if ( null !== $ criteria ) { if ( false !== $ this -> collPicturesPartial && count ( $ collPictures ) ) { $ this -> initPictures ( false ) ; foreach ( $ collPictures as $ obj ) { if ( false == $ this -> collPictures -> contains ( $ obj ) ) { $ this -> collPictures -> append ( $ obj ) ; } } $ this -> collPicturesPartial = true ; } return $ collPictures ; } if ( $ partial && $ this -> collPictures ) { foreach ( $ this -> collPictures as $ obj ) { if ( $ obj -> isNew ( ) ) { $ collPictures [ ] = $ obj ; } } } $ this -> collPictures = $ collPictures ; $ this -> collPicturesPartial = false ; } } return $ this -> collPictures ; }
Gets an array of ChildPicture objects which contain a foreign key that references this object .
14,568
public function countPictures ( Criteria $ criteria = null , $ distinct = false , ConnectionInterface $ con = null ) { $ partial = $ this -> collPicturesPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collPictures || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collPictures ) { return 0 ; } if ( $ partial && ! $ criteria ) { return count ( $ this -> getPictures ( ) ) ; } $ query = ChildPictureQuery :: create ( null , $ criteria ) ; if ( $ distinct ) { $ query -> distinct ( ) ; } return $ query -> filterBySkill ( $ this ) -> count ( $ con ) ; } return count ( $ this -> collPictures ) ; }
Returns the number of related Picture objects .
14,569
public function addPicture ( ChildPicture $ l ) { if ( $ this -> collPictures === null ) { $ this -> initPictures ( ) ; $ this -> collPicturesPartial = true ; } if ( ! $ this -> collPictures -> contains ( $ l ) ) { $ this -> doAddPicture ( $ l ) ; } return $ this ; }
Method called to associate a ChildPicture object to this object through the ChildPicture foreign key attribute .
14,570
public function initVideos ( $ overrideExisting = true ) { if ( null !== $ this -> collVideos && ! $ overrideExisting ) { return ; } $ this -> collVideos = new ObjectCollection ( ) ; $ this -> collVideos -> setModel ( '\gossi\trixionary\model\Video' ) ; }
Initializes the collVideos collection .
14,571
public function getVideos ( Criteria $ criteria = null , ConnectionInterface $ con = null ) { $ partial = $ this -> collVideosPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collVideos || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collVideos ) { $ this -> initVideos ( ) ; } else { $ collVideos = ChildVideoQuery :: create ( null , $ criteria ) -> filterBySkill ( $ this ) -> find ( $ con ) ; if ( null !== $ criteria ) { if ( false !== $ this -> collVideosPartial && count ( $ collVideos ) ) { $ this -> initVideos ( false ) ; foreach ( $ collVideos as $ obj ) { if ( false == $ this -> collVideos -> contains ( $ obj ) ) { $ this -> collVideos -> append ( $ obj ) ; } } $ this -> collVideosPartial = true ; } return $ collVideos ; } if ( $ partial && $ this -> collVideos ) { foreach ( $ this -> collVideos as $ obj ) { if ( $ obj -> isNew ( ) ) { $ collVideos [ ] = $ obj ; } } } $ this -> collVideos = $ collVideos ; $ this -> collVideosPartial = false ; } } return $ this -> collVideos ; }
Gets an array of ChildVideo objects which contain a foreign key that references this object .
14,572
public function addVideo ( ChildVideo $ l ) { if ( $ this -> collVideos === null ) { $ this -> initVideos ( ) ; $ this -> collVideosPartial = true ; } if ( ! $ this -> collVideos -> contains ( $ l ) ) { $ this -> doAddVideo ( $ l ) ; } return $ this ; }
Method called to associate a ChildVideo object to this object through the ChildVideo foreign key attribute .
14,573
public function getVideosJoinReference ( Criteria $ criteria = null , ConnectionInterface $ con = null , $ joinBehavior = Criteria :: LEFT_JOIN ) { $ query = ChildVideoQuery :: create ( null , $ criteria ) ; $ query -> joinWith ( 'Reference' , $ joinBehavior ) ; return $ this -> getVideos ( $ query , $ con ) ; }
If this collection has already been initialized with an identical criteria it returns the collection . Otherwise if this Skill is new it will return an empty collection ; or if this Skill has previously been saved it will retrieve related Videos from storage .
14,574
public function initSkillReferences ( $ overrideExisting = true ) { if ( null !== $ this -> collSkillReferences && ! $ overrideExisting ) { return ; } $ this -> collSkillReferences = new ObjectCollection ( ) ; $ this -> collSkillReferences -> setModel ( '\gossi\trixionary\model\SkillReference' ) ; }
Initializes the collSkillReferences collection .
14,575
public function countSkillReferences ( Criteria $ criteria = null , $ distinct = false , ConnectionInterface $ con = null ) { $ partial = $ this -> collSkillReferencesPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collSkillReferences || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collSkillReferences ) { return 0 ; } if ( $ partial && ! $ criteria ) { return count ( $ this -> getSkillReferences ( ) ) ; } $ query = ChildSkillReferenceQuery :: create ( null , $ criteria ) ; if ( $ distinct ) { $ query -> distinct ( ) ; } return $ query -> filterBySkill ( $ this ) -> count ( $ con ) ; } return count ( $ this -> collSkillReferences ) ; }
Returns the number of related SkillReference objects .
14,576
public function addSkillReference ( ChildSkillReference $ l ) { if ( $ this -> collSkillReferences === null ) { $ this -> initSkillReferences ( ) ; $ this -> collSkillReferencesPartial = true ; } if ( ! $ this -> collSkillReferences -> contains ( $ l ) ) { $ this -> doAddSkillReference ( $ l ) ; } return $ this ; }
Method called to associate a ChildSkillReference object to this object through the ChildSkillReference foreign key attribute .
14,577
public function initStructureNodes ( $ overrideExisting = true ) { if ( null !== $ this -> collStructureNodes && ! $ overrideExisting ) { return ; } $ this -> collStructureNodes = new ObjectCollection ( ) ; $ this -> collStructureNodes -> setModel ( '\gossi\trixionary\model\StructureNode' ) ; }
Initializes the collStructureNodes collection .
14,578
public function getStructureNodes ( Criteria $ criteria = null , ConnectionInterface $ con = null ) { $ partial = $ this -> collStructureNodesPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collStructureNodes || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collStructureNodes ) { $ this -> initStructureNodes ( ) ; } else { $ collStructureNodes = ChildStructureNodeQuery :: create ( null , $ criteria ) -> filterBySkill ( $ this ) -> find ( $ con ) ; if ( null !== $ criteria ) { if ( false !== $ this -> collStructureNodesPartial && count ( $ collStructureNodes ) ) { $ this -> initStructureNodes ( false ) ; foreach ( $ collStructureNodes as $ obj ) { if ( false == $ this -> collStructureNodes -> contains ( $ obj ) ) { $ this -> collStructureNodes -> append ( $ obj ) ; } } $ this -> collStructureNodesPartial = true ; } return $ collStructureNodes ; } if ( $ partial && $ this -> collStructureNodes ) { foreach ( $ this -> collStructureNodes as $ obj ) { if ( $ obj -> isNew ( ) ) { $ collStructureNodes [ ] = $ obj ; } } } $ this -> collStructureNodes = $ collStructureNodes ; $ this -> collStructureNodesPartial = false ; } } return $ this -> collStructureNodes ; }
Gets an array of ChildStructureNode objects which contain a foreign key that references this object .
14,579
public function countStructureNodes ( Criteria $ criteria = null , $ distinct = false , ConnectionInterface $ con = null ) { $ partial = $ this -> collStructureNodesPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collStructureNodes || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collStructureNodes ) { return 0 ; } if ( $ partial && ! $ criteria ) { return count ( $ this -> getStructureNodes ( ) ) ; } $ query = ChildStructureNodeQuery :: create ( null , $ criteria ) ; if ( $ distinct ) { $ query -> distinct ( ) ; } return $ query -> filterBySkill ( $ this ) -> count ( $ con ) ; } return count ( $ this -> collStructureNodes ) ; }
Returns the number of related StructureNode objects .
14,580
public function addStructureNode ( ChildStructureNode $ l ) { if ( $ this -> collStructureNodes === null ) { $ this -> initStructureNodes ( ) ; $ this -> collStructureNodesPartial = true ; } if ( ! $ this -> collStructureNodes -> contains ( $ l ) ) { $ this -> doAddStructureNode ( $ l ) ; } return $ this ; }
Method called to associate a ChildStructureNode object to this object through the ChildStructureNode foreign key attribute .
14,581
public function initKstruktursRelatedBySkillId ( $ overrideExisting = true ) { if ( null !== $ this -> collKstruktursRelatedBySkillId && ! $ overrideExisting ) { return ; } $ this -> collKstruktursRelatedBySkillId = new ObjectCollection ( ) ; $ this -> collKstruktursRelatedBySkillId -> setModel ( '\gossi\trixionary\model\Kstruktur' ) ; }
Initializes the collKstruktursRelatedBySkillId collection .
14,582
public function getKstruktursRelatedBySkillId ( Criteria $ criteria = null , ConnectionInterface $ con = null ) { $ partial = $ this -> collKstruktursRelatedBySkillIdPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collKstruktursRelatedBySkillId || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collKstruktursRelatedBySkillId ) { $ this -> initKstruktursRelatedBySkillId ( ) ; } else { $ collKstruktursRelatedBySkillId = ChildKstrukturQuery :: create ( null , $ criteria ) -> filterBySkillRelatedBySkillId ( $ this ) -> find ( $ con ) ; if ( null !== $ criteria ) { if ( false !== $ this -> collKstruktursRelatedBySkillIdPartial && count ( $ collKstruktursRelatedBySkillId ) ) { $ this -> initKstruktursRelatedBySkillId ( false ) ; foreach ( $ collKstruktursRelatedBySkillId as $ obj ) { if ( false == $ this -> collKstruktursRelatedBySkillId -> contains ( $ obj ) ) { $ this -> collKstruktursRelatedBySkillId -> append ( $ obj ) ; } } $ this -> collKstruktursRelatedBySkillIdPartial = true ; } return $ collKstruktursRelatedBySkillId ; } if ( $ partial && $ this -> collKstruktursRelatedBySkillId ) { foreach ( $ this -> collKstruktursRelatedBySkillId as $ obj ) { if ( $ obj -> isNew ( ) ) { $ collKstruktursRelatedBySkillId [ ] = $ obj ; } } } $ this -> collKstruktursRelatedBySkillId = $ collKstruktursRelatedBySkillId ; $ this -> collKstruktursRelatedBySkillIdPartial = false ; } } return $ this -> collKstruktursRelatedBySkillId ; }
Gets an array of ChildKstruktur objects which contain a foreign key that references this object .
14,583
public function countKstruktursRelatedBySkillId ( Criteria $ criteria = null , $ distinct = false , ConnectionInterface $ con = null ) { $ partial = $ this -> collKstruktursRelatedBySkillIdPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collKstruktursRelatedBySkillId || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collKstruktursRelatedBySkillId ) { return 0 ; } if ( $ partial && ! $ criteria ) { return count ( $ this -> getKstruktursRelatedBySkillId ( ) ) ; } $ query = ChildKstrukturQuery :: create ( null , $ criteria ) ; if ( $ distinct ) { $ query -> distinct ( ) ; } return $ query -> filterBySkillRelatedBySkillId ( $ this ) -> count ( $ con ) ; } return count ( $ this -> collKstruktursRelatedBySkillId ) ; }
Returns the number of related Kstruktur objects .
14,584
public function addKstrukturRelatedBySkillId ( ChildKstruktur $ l ) { if ( $ this -> collKstruktursRelatedBySkillId === null ) { $ this -> initKstruktursRelatedBySkillId ( ) ; $ this -> collKstruktursRelatedBySkillIdPartial = true ; } if ( ! $ this -> collKstruktursRelatedBySkillId -> contains ( $ l ) ) { $ this -> doAddKstrukturRelatedBySkillId ( $ l ) ; } return $ this ; }
Method called to associate a ChildKstruktur object to this object through the ChildKstruktur foreign key attribute .
14,585
public function getKstruktursRelatedBySkillIdJoinStructureNode ( Criteria $ criteria = null , ConnectionInterface $ con = null , $ joinBehavior = Criteria :: LEFT_JOIN ) { $ query = ChildKstrukturQuery :: create ( null , $ criteria ) ; $ query -> joinWith ( 'StructureNode' , $ joinBehavior ) ; return $ this -> getKstruktursRelatedBySkillId ( $ query , $ con ) ; }
If this collection has already been initialized with an identical criteria it returns the collection . Otherwise if this Skill is new it will return an empty collection ; or if this Skill has previously been saved it will retrieve related KstruktursRelatedBySkillId from storage .
14,586
public function initFunctionPhasesRelatedBySkillId ( $ overrideExisting = true ) { if ( null !== $ this -> collFunctionPhasesRelatedBySkillId && ! $ overrideExisting ) { return ; } $ this -> collFunctionPhasesRelatedBySkillId = new ObjectCollection ( ) ; $ this -> collFunctionPhasesRelatedBySkillId -> setModel ( '\gossi\trixionary\model\FunctionPhase' ) ; }
Initializes the collFunctionPhasesRelatedBySkillId collection .
14,587
public function getFunctionPhasesRelatedBySkillId ( Criteria $ criteria = null , ConnectionInterface $ con = null ) { $ partial = $ this -> collFunctionPhasesRelatedBySkillIdPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collFunctionPhasesRelatedBySkillId || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collFunctionPhasesRelatedBySkillId ) { $ this -> initFunctionPhasesRelatedBySkillId ( ) ; } else { $ collFunctionPhasesRelatedBySkillId = ChildFunctionPhaseQuery :: create ( null , $ criteria ) -> filterBySkillRelatedBySkillId ( $ this ) -> find ( $ con ) ; if ( null !== $ criteria ) { if ( false !== $ this -> collFunctionPhasesRelatedBySkillIdPartial && count ( $ collFunctionPhasesRelatedBySkillId ) ) { $ this -> initFunctionPhasesRelatedBySkillId ( false ) ; foreach ( $ collFunctionPhasesRelatedBySkillId as $ obj ) { if ( false == $ this -> collFunctionPhasesRelatedBySkillId -> contains ( $ obj ) ) { $ this -> collFunctionPhasesRelatedBySkillId -> append ( $ obj ) ; } } $ this -> collFunctionPhasesRelatedBySkillIdPartial = true ; } return $ collFunctionPhasesRelatedBySkillId ; } if ( $ partial && $ this -> collFunctionPhasesRelatedBySkillId ) { foreach ( $ this -> collFunctionPhasesRelatedBySkillId as $ obj ) { if ( $ obj -> isNew ( ) ) { $ collFunctionPhasesRelatedBySkillId [ ] = $ obj ; } } } $ this -> collFunctionPhasesRelatedBySkillId = $ collFunctionPhasesRelatedBySkillId ; $ this -> collFunctionPhasesRelatedBySkillIdPartial = false ; } } return $ this -> collFunctionPhasesRelatedBySkillId ; }
Gets an array of ChildFunctionPhase objects which contain a foreign key that references this object .
14,588
public function countFunctionPhasesRelatedBySkillId ( Criteria $ criteria = null , $ distinct = false , ConnectionInterface $ con = null ) { $ partial = $ this -> collFunctionPhasesRelatedBySkillIdPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collFunctionPhasesRelatedBySkillId || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collFunctionPhasesRelatedBySkillId ) { return 0 ; } if ( $ partial && ! $ criteria ) { return count ( $ this -> getFunctionPhasesRelatedBySkillId ( ) ) ; } $ query = ChildFunctionPhaseQuery :: create ( null , $ criteria ) ; if ( $ distinct ) { $ query -> distinct ( ) ; } return $ query -> filterBySkillRelatedBySkillId ( $ this ) -> count ( $ con ) ; } return count ( $ this -> collFunctionPhasesRelatedBySkillId ) ; }
Returns the number of related FunctionPhase objects .
14,589
public function addFunctionPhaseRelatedBySkillId ( ChildFunctionPhase $ l ) { if ( $ this -> collFunctionPhasesRelatedBySkillId === null ) { $ this -> initFunctionPhasesRelatedBySkillId ( ) ; $ this -> collFunctionPhasesRelatedBySkillIdPartial = true ; } if ( ! $ this -> collFunctionPhasesRelatedBySkillId -> contains ( $ l ) ) { $ this -> doAddFunctionPhaseRelatedBySkillId ( $ l ) ; } return $ this ; }
Method called to associate a ChildFunctionPhase object to this object through the ChildFunctionPhase foreign key attribute .
14,590
public function getFunctionPhasesRelatedBySkillIdJoinStructureNode ( Criteria $ criteria = null , ConnectionInterface $ con = null , $ joinBehavior = Criteria :: LEFT_JOIN ) { $ query = ChildFunctionPhaseQuery :: create ( null , $ criteria ) ; $ query -> joinWith ( 'StructureNode' , $ joinBehavior ) ; return $ this -> getFunctionPhasesRelatedBySkillId ( $ query , $ con ) ; }
If this collection has already been initialized with an identical criteria it returns the collection . Otherwise if this Skill is new it will return an empty collection ; or if this Skill has previously been saved it will retrieve related FunctionPhasesRelatedBySkillId from storage .
14,591
public function initSkillVersions ( $ overrideExisting = true ) { if ( null !== $ this -> collSkillVersions && ! $ overrideExisting ) { return ; } $ this -> collSkillVersions = new ObjectCollection ( ) ; $ this -> collSkillVersions -> setModel ( '\gossi\trixionary\model\SkillVersion' ) ; }
Initializes the collSkillVersions collection .
14,592
public function getSkillVersions ( Criteria $ criteria = null , ConnectionInterface $ con = null ) { $ partial = $ this -> collSkillVersionsPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collSkillVersions || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collSkillVersions ) { $ this -> initSkillVersions ( ) ; } else { $ collSkillVersions = ChildSkillVersionQuery :: create ( null , $ criteria ) -> filterBySkill ( $ this ) -> find ( $ con ) ; if ( null !== $ criteria ) { if ( false !== $ this -> collSkillVersionsPartial && count ( $ collSkillVersions ) ) { $ this -> initSkillVersions ( false ) ; foreach ( $ collSkillVersions as $ obj ) { if ( false == $ this -> collSkillVersions -> contains ( $ obj ) ) { $ this -> collSkillVersions -> append ( $ obj ) ; } } $ this -> collSkillVersionsPartial = true ; } return $ collSkillVersions ; } if ( $ partial && $ this -> collSkillVersions ) { foreach ( $ this -> collSkillVersions as $ obj ) { if ( $ obj -> isNew ( ) ) { $ collSkillVersions [ ] = $ obj ; } } } $ this -> collSkillVersions = $ collSkillVersions ; $ this -> collSkillVersionsPartial = false ; } } return $ this -> collSkillVersions ; }
Gets an array of ChildSkillVersion objects which contain a foreign key that references this object .
14,593
public function countSkillVersions ( Criteria $ criteria = null , $ distinct = false , ConnectionInterface $ con = null ) { $ partial = $ this -> collSkillVersionsPartial && ! $ this -> isNew ( ) ; if ( null === $ this -> collSkillVersions || null !== $ criteria || $ partial ) { if ( $ this -> isNew ( ) && null === $ this -> collSkillVersions ) { return 0 ; } if ( $ partial && ! $ criteria ) { return count ( $ this -> getSkillVersions ( ) ) ; } $ query = ChildSkillVersionQuery :: create ( null , $ criteria ) ; if ( $ distinct ) { $ query -> distinct ( ) ; } return $ query -> filterBySkill ( $ this ) -> count ( $ con ) ; } return count ( $ this -> collSkillVersions ) ; }
Returns the number of related SkillVersion objects .
14,594
public function addSkillVersion ( ChildSkillVersion $ l ) { if ( $ this -> collSkillVersions === null ) { $ this -> initSkillVersions ( ) ; $ this -> collSkillVersionsPartial = true ; } if ( ! $ this -> collSkillVersions -> contains ( $ l ) ) { $ this -> doAddSkillVersion ( $ l ) ; } return $ this ; }
Method called to associate a ChildSkillVersion object to this object through the ChildSkillVersion foreign key attribute .
14,595
public function initSkillsRelatedByParentId ( ) { $ this -> collSkillsRelatedByParentId = new ObjectCollection ( ) ; $ this -> collSkillsRelatedByParentIdPartial = true ; $ this -> collSkillsRelatedByParentId -> setModel ( '\gossi\trixionary\model\Skill' ) ; }
Initializes the collSkillsRelatedByParentId crossRef collection .
14,596
public function removeSkillRelatedByParentId ( ChildSkill $ skillRelatedByParentId ) { if ( $ this -> getSkillsRelatedByParentId ( ) -> contains ( $ skillRelatedByParentId ) ) { $ skillDependency = new ChildSkillDependency ( ) ; $ skillDependency -> setSkillRelatedByParentId ( $ skillRelatedByParentId ) ; if ( $ skillRelatedByParentId -> isSkillRelatedByDependencyIdsLoaded ( ) ) { $ skillRelatedByParentId -> getSkillRelatedByDependencyIds ( ) -> removeObject ( $ this ) ; } $ skillDependency -> setSkillRelatedByDependencyId ( $ this ) ; $ this -> removeChild ( clone $ skillDependency ) ; $ skillDependency -> clear ( ) ; $ this -> collSkillsRelatedByParentId -> remove ( $ this -> collSkillsRelatedByParentId -> search ( $ skillRelatedByParentId ) ) ; if ( null === $ this -> skillsRelatedByParentIdScheduledForDeletion ) { $ this -> skillsRelatedByParentIdScheduledForDeletion = clone $ this -> collSkillsRelatedByParentId ; $ this -> skillsRelatedByParentIdScheduledForDeletion -> clear ( ) ; } $ this -> skillsRelatedByParentIdScheduledForDeletion -> push ( $ skillRelatedByParentId ) ; } return $ this ; }
Remove skillRelatedByParentId of this object through the kk_trixionary_skill_dependency cross reference table .
14,597
public function initSkillsRelatedByDependencyId ( ) { $ this -> collSkillsRelatedByDependencyId = new ObjectCollection ( ) ; $ this -> collSkillsRelatedByDependencyIdPartial = true ; $ this -> collSkillsRelatedByDependencyId -> setModel ( '\gossi\trixionary\model\Skill' ) ; }
Initializes the collSkillsRelatedByDependencyId crossRef collection .
14,598
public function removeSkillRelatedByDependencyId ( ChildSkill $ skillRelatedByDependencyId ) { if ( $ this -> getSkillsRelatedByDependencyId ( ) -> contains ( $ skillRelatedByDependencyId ) ) { $ skillDependency = new ChildSkillDependency ( ) ; $ skillDependency -> setSkillRelatedByDependencyId ( $ skillRelatedByDependencyId ) ; if ( $ skillRelatedByDependencyId -> isSkillRelatedByParentIdsLoaded ( ) ) { $ skillRelatedByDependencyId -> getSkillRelatedByParentIds ( ) -> removeObject ( $ this ) ; } $ skillDependency -> setSkillRelatedByParentId ( $ this ) ; $ this -> removeParent ( clone $ skillDependency ) ; $ skillDependency -> clear ( ) ; $ this -> collSkillsRelatedByDependencyId -> remove ( $ this -> collSkillsRelatedByDependencyId -> search ( $ skillRelatedByDependencyId ) ) ; if ( null === $ this -> skillsRelatedByDependencyIdScheduledForDeletion ) { $ this -> skillsRelatedByDependencyIdScheduledForDeletion = clone $ this -> collSkillsRelatedByDependencyId ; $ this -> skillsRelatedByDependencyIdScheduledForDeletion -> clear ( ) ; } $ this -> skillsRelatedByDependencyIdScheduledForDeletion -> push ( $ skillRelatedByDependencyId ) ; } return $ this ; }
Remove skillRelatedByDependencyId of this object through the kk_trixionary_skill_dependency cross reference table .
14,599
public function initSkillsRelatedByCompositeId ( ) { $ this -> collSkillsRelatedByCompositeId = new ObjectCollection ( ) ; $ this -> collSkillsRelatedByCompositeIdPartial = true ; $ this -> collSkillsRelatedByCompositeId -> setModel ( '\gossi\trixionary\model\Skill' ) ; }
Initializes the collSkillsRelatedByCompositeId crossRef collection .