本文整理汇总了PHP中Members::get_id方法的典型用法代码示例。如果您正苦于以下问题:PHP Members::get_id方法的具体用法?PHP Members::get_id怎么用?PHP Members::get_id使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Members
的用法示例。
在下文中一共展示了Members::get_id方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
<?php
session_start();
if (!isset($_SESSION['login'])) {
header('location: ../../accueil.php');
} else {
if (isset($_FILES['picture'])) {
$extension = strrchr($_FILES['picture']['name'], '.');
include_once '../../class/Members.php';
$member = new Members($_SESSION['login']);
move_uploaded_file($_FILES['picture']['tmp_name'], "../picture/" . $member->get_id() . $extension);
$member->set_member_picture($member->get_pseudo(), "./picture/" . $member->get_id() . $extension);
header('location: ../settings.php?photochanged=1');
} else {
header('location: ../settings.php?nopicture=1');
}
}
示例2: NotificationFactory
<div id="select_file">
<p>Add a picture
<input type="file" name="picture"/></p>
</div>
<?php
echo '<input type="hidden" name="where" value="' . $page_name . '";/>';
?>
<input type="submit" value="Post !"/>
</form>
<div>
<div>
<a href="#" id="notifications">
<p>
<img src="../pictures/notification.png"/>
<?php
$notification_factory = new NotificationFactory($user->get_id());
echo $notification_factory->size;
echo '</p>';
?>
</a>
</div>
<div id="notification_menu">
<?php
$t_size = $notification_factory->size;
for ($i = 0; $i < $t_size; $i++) {
$notification_factory->display($i);
}
?>
</div>
</div>
</aside>
示例3: ArticleFactory
<div id="select_file">
<p>Add a picture
<input type="file" name="picture"/></p>
</div>
<?php
echo '<input type="hidden" name="where" value="' . $page_name . '";/>';
?>
<input type="submit" value="Post !"/>
</form>
<!--notifications-->
</aside>
<section id="actu">
<!-- Articles publiés sans les commentaires-->
<?php
include_once "./class/ArticleFactory.php";
$profile_articles = new ArticleFactory($member->get_id());
$t_size = $profile_articles->size;
for ($i = 0; $i < $t_size; $i++) {
$profile_articles->display($i);
$profile_articles->display_comment_form($i);
}
?>
</section>
<footer>
<p>ok</p>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="./script/adapt_size.js"></script>
<script src="./script/like.js"></script>
<script src="./script/comment.js"></script>
</body>