Esempio n. 1
0
 ]

</div>

<?php 
}
?>


<?php 
if (@$created_rel) {
    ?>

  <div>
    Relationship created! <?php 
    echo link_to($created_rel->getName(), RelationshipTable::getInternalUrl($created_rel), array('target' => '_new', 'absolute' => 1));
    ?>
  </div>
  
  <br />
  
<?php 
}
?>


<form action="<?php 
echo url_for('relationship/toolbar', 1);
?>
" method="POST" onsubmit="return validateRelationship();">
<?php 
Esempio n. 2
0
        }
        ?>

		<?php 
        if (isset($existing_rels) && count($existing_rels)) {
            ?>
			<tr> 
			<td>
			 These relationships already existed: <br />
			 </td>
			<td style="float:left">
			<?php 
            foreach ($existing_rels as $rel) {
                ?>
			<?php 
                echo link_to($rel->getName(), RelationshipTable::getInternalUrl($rel), array('target' => '_new'));
                ?>
<br />
			<?php 
            }
            ?>
			</td>
			</tr>
		<?php 
        }
        ?>
		</table>
	<?php 
    }
    ?>
Esempio n. 3
0
<?php

slot('header_text', RelationshipTable::getName($relationship));
slot('header_link', RelationshipTable::getInternalUrl($relationship));
slot('description_meta', RelationshipTable::generateMetaDescription($relationship));
?>

<?php 
if (!$relationship['is_deleted'] && isset($show_actions) && $show_actions) {
    ?>
  <?php 
    slot('header_actions', array('edit' => array('url' => 'relationship/edit?id=' . $relationship['id'], 'credential' => 'editor'), 'flag' => array('url' => 'home/contact?type=flag'), 'remove' => array('url' => 'relationship/remove?id=' . $relationship['id'], 'options' => 'post=true confirm=Are you sure you want to remove this relationship?', 'credential' => 'deleter'), 'refresh' => array('url' => RelationshipTable::getInternalUrl($relationship, 'refresh', array('ref' => $sf_request->getUri())), 'credential' => 'admin')));
    ?>
  
<?php 
}
Esempio n. 4
0
slot('rightcol');
?>

<?php 
if ($sf_user->isAuthenticated() || !cache('rightcol', 86400)) {
    ?>
  <?php 
    include_partial('global/modifications', array('object' => $relationship, 'more_uri' => RelationshipTable::getInternalUrl($relationship, 'modifications')));
    ?>
  <?php 
    include_component('reference', 'list', array('object' => $relationship, 'model' => 'Relationship', 'more_uri' => RelationshipTable::getInternalUrl($relationship, 'references')));
    ?>
  <?php 
    if (!$sf_user->isAuthenticated()) {
        ?>
    <?php 
        cache_save();
        ?>
  <?php 
    }
}
?>

<br />  
<?php 
include_component('note', 'recordSample', array('record' => $relationship, 'more_uri' => RelationshipTable::getInternalUrl($relationship, 'notes'), 'model' => 'Relationship', 'name' => 'this relationship'));
?>

<?php 
end_slot();
Esempio n. 5
0
 public function executeRefresh($request)
 {
     $this->checkRelationship($request);
     LsCache::clearRelationshipCacheById($this->relationship['id']);
     $this->redirect($request->getParameter('ref', RelationshipTable::getInternalUrl($this->relationship)));
 }