Ignore:
Timestamp:
03/13/12 18:23:02 (12 years ago)
Author:
natan
Message:

Ticket #2434 - Implementacao da repeticao de eventos na agenda e adicao de suporte a relacionamentos 1x1 na API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/links.php

    r5514 r5715  
    1616    $concepts = array(); 
    1717    $nestedLinks = array(); 
     18    $hasOne = array(); 
    1819 
    1920    foreach( $link as $linkName => $linkTarget ) 
     
    2223            $concepts[ $linkName ] = true; 
    2324 
     25         if( Controller::hasOne( $concept, $linkName ) ) 
     26            $hasOne[ $linkName ] = true; 
     27 
    2428          $nestedLinks[ $linkName ] = Controller::links( $concept, $linkName ); 
    2529    } 
    2630 
    27     $return[ $target ] = array( 'concepts' => $concepts, 'links' => $link, 'nestedLinks' => $nestedLinks ); 
     31    $return[ $target ] = array( 'concepts' => $concepts, 'links' => $link, 'nestedLinks' => $nestedLinks, 'hasOne' => $hasOne ); 
    2832} 
    2933 
Note: See TracChangeset for help on using the changeset viewer.